<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: uri.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('uri_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">uri.h</div></div>
</div><!--header-->
<div class="contents">
<a href="uri_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * uri.h -- helper functions for URI treatment</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * Copyright (C) 2010-2011,2016 Olaf Bergmann &lt;bergmann@tzi.org&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * This file is part of the CoAP library libcoap. Please see README for terms</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * of use.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> */</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#ifndef COAP_URI_H_</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#define COAP_URI_H_</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &quot;<a class="code" href="str_8h.html">str.h</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="keyword">struct </span><a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a>;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="foldopen" id="foldopen00022" data-start="{" data-end="};">
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36">   22</a></span><span class="keyword">enum</span> <a class="code hl_enumeration" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36">coap_uri_scheme_t</a> {</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36aa41e50ffeab4e989246accb8fc53cf27">   23</a></span>  <a class="code hl_enumvalue" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36aa41e50ffeab4e989246accb8fc53cf27">COAP_URI_SCHEME_COAP</a>=0,</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a477afebb401d715bd69eb3e8ff089ab5">   24</a></span>  <a class="code hl_enumvalue" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a477afebb401d715bd69eb3e8ff089ab5">COAP_URI_SCHEME_COAPS</a>=1,</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a62476eb057eeaafcf92cdf9b505af96e">   25</a></span>  <a class="code hl_enumvalue" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a62476eb057eeaafcf92cdf9b505af96e">COAP_URI_SCHEME_COAP_TCP</a>=2,</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>  <a class="code hl_enumvalue" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a375f028b44b6d57248c58725bbd38e88">COAP_URI_SCHEME_COAPS_TCP</a>=3</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a375f028b44b6d57248c58725bbd38e88">   27</a></span>};</div>
</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="uri_8h.html#acb59d406ae112c48a6c0b200b9433e78">   30</a></span><span class="preprocessor">#define COAP_URI_SCHEME_SECURE_MASK 0x01</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="foldopen" id="foldopen00036" data-start="{" data-end="};">
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structcoap__uri__t.html">   36</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structcoap__uri__t.html#ace54f7716bd00e861e0091275ddf3c07">   37</a></span>  <a class="code hl_struct" href="structcoap__str__const__t.html">coap_str_const_t</a> <a class="code hl_variable" href="structcoap__uri__t.html#ace54f7716bd00e861e0091275ddf3c07">host</a>;  </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structcoap__uri__t.html#a87ab58b675bfc920c23e136be9be9e89">   38</a></span>  uint16_t <a class="code hl_variable" href="structcoap__uri__t.html#a87ab58b675bfc920c23e136be9be9e89">port</a>;          </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structcoap__uri__t.html#a2c4505373842a4686ae02a3972b078ca">   39</a></span>  <a class="code hl_struct" href="structcoap__str__const__t.html">coap_str_const_t</a> <a class="code hl_variable" href="structcoap__uri__t.html#a2c4505373842a4686ae02a3972b078ca">path</a>;  </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="structcoap__uri__t.html#aa15af22879892b2fd5aee8b4d36a923f">   41</a></span>  <a class="code hl_struct" href="structcoap__str__const__t.html">coap_str_const_t</a> <a class="code hl_variable" href="structcoap__uri__t.html#aa15af22879892b2fd5aee8b4d36a923f">query</a>; </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structcoap__uri__t.html#a2b3355328328ce7adb61cd95df96abc7">   44</a></span>  <span class="keyword">enum</span> <a class="code hl_enumeration" href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36">coap_uri_scheme_t</a> <a class="code hl_variable" href="structcoap__uri__t.html#a2b3355328328ce7adb61cd95df96abc7">scheme</a>;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>} <a class="code hl_struct" href="structcoap__uri__t.html">coap_uri_t</a>;</div>
</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span></div>
<div class="foldopen" id="foldopen00048" data-start="{" data-end="}">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="uri_8h.html#a04d042f5a81b4a13bf1cc7d94920ed87">   48</a></span><a class="code hl_function" href="uri_8h.html#a04d042f5a81b4a13bf1cc7d94920ed87">coap_uri_scheme_is_secure</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structcoap__uri__t.html">coap_uri_t</a> *uri) {</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>  <span class="keywordflow">return</span> uri &amp;&amp; ((uri-&gt;<a class="code hl_variable" href="structcoap__uri__t.html#a2b3355328328ce7adb61cd95df96abc7">scheme</a> &amp; <a class="code hl_define" href="uri_8h.html#acb59d406ae112c48a6c0b200b9433e78">COAP_URI_SCHEME_SECURE_MASK</a>) != 0);</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>}</div>
</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span><a class="code hl_struct" href="structcoap__uri__t.html">coap_uri_t</a> *<a class="code hl_function" href="uri_8h.html#aee99e6e8fd8df58150ec10e66c8dc265">coap_new_uri</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *uri, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span><a class="code hl_struct" href="structcoap__uri__t.html">coap_uri_t</a> *<a class="code hl_function" href="uri_8h.html#ad75ec78bfe175cd75f19d7e845c774f8">coap_clone_uri</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structcoap__uri__t.html">coap_uri_t</a> *uri);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__uri__parse.html#ga9b19917fbf64f3a35a52d31ae5f6f76c">coap_split_uri</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *str_var, <span class="keywordtype">size_t</span> len, <a class="code hl_struct" href="structcoap__uri__t.html">coap_uri_t</a> *uri);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__uri__parse.html#ga4a01c4a81338c39d0a2fb1e3859a6fb0">coap_split_path</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *s,</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>                    <span class="keywordtype">size_t</span> length,</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>                    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf,</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>                    <span class="keywordtype">size_t</span> *buflen);</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__uri__parse.html#ga522cc4dfe723c2a3537f35ee2389ef74">coap_split_query</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *s,</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>                     <span class="keywordtype">size_t</span> length,</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>                     <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf,</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>                     <span class="keywordtype">size_t</span> *buflen);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="group__uri__parse.html#gaa152f147a0e2370b196deb5b364313df">  136</a></span><a class="code hl_struct" href="structcoap__string__t.html">coap_string_t</a> *<a class="code hl_function" href="group__uri__parse.html#gaa152f147a0e2370b196deb5b364313df">coap_get_query</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="group__uri__parse.html#gafcfd572c6550468200822c74e0d03929">  143</a></span><a class="code hl_struct" href="structcoap__string__t.html">coap_string_t</a> *<a class="code hl_function" href="group__uri__parse.html#gafcfd572c6550468200822c74e0d03929">coap_get_uri_path</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span><span class="preprocessor">#endif </span><span class="comment">/* COAP_URI_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="agroup__uri__parse_html_ga4a01c4a81338c39d0a2fb1e3859a6fb0"><div class="ttname"><a href="group__uri__parse.html#ga4a01c4a81338c39d0a2fb1e3859a6fb0">coap_split_path</a></div><div class="ttdeci">int coap_split_path(const uint8_t *s, size_t length, unsigned char *buf, size_t *buflen)</div><div class="ttdoc">Splits the given URI path into segments.</div><div class="ttdef"><b>Definition</b> <a href="uri_8c_source.html#l00400">uri.c:400</a></div></div>
<div class="ttc" id="agroup__uri__parse_html_ga522cc4dfe723c2a3537f35ee2389ef74"><div class="ttname"><a href="group__uri__parse.html#ga522cc4dfe723c2a3537f35ee2389ef74">coap_split_query</a></div><div class="ttdeci">int coap_split_query(const uint8_t *s, size_t length, unsigned char *buf, size_t *buflen)</div><div class="ttdoc">Splits the given URI query into segments.</div><div class="ttdef"><b>Definition</b> <a href="uri_8c_source.html#l00412">uri.c:412</a></div></div>
<div class="ttc" id="agroup__uri__parse_html_ga9b19917fbf64f3a35a52d31ae5f6f76c"><div class="ttname"><a href="group__uri__parse.html#ga9b19917fbf64f3a35a52d31ae5f6f76c">coap_split_uri</a></div><div class="ttdeci">int coap_split_uri(const uint8_t *str_var, size_t len, coap_uri_t *uri)</div><div class="ttdoc">Parses a given string into URI components.</div><div class="ttdef"><b>Definition</b> <a href="uri_8c_source.html#l00053">uri.c:53</a></div></div>
<div class="ttc" id="agroup__uri__parse_html_gaa152f147a0e2370b196deb5b364313df"><div class="ttname"><a href="group__uri__parse.html#gaa152f147a0e2370b196deb5b364313df">coap_get_query</a></div><div class="ttdeci">coap_string_t * coap_get_query(const struct coap_pdu_t *request)</div><div class="ttdoc">Extract query string from request PDU according to escape rules in 6.5.8.</div></div>
<div class="ttc" id="agroup__uri__parse_html_gafcfd572c6550468200822c74e0d03929"><div class="ttname"><a href="group__uri__parse.html#gafcfd572c6550468200822c74e0d03929">coap_get_uri_path</a></div><div class="ttdeci">coap_string_t * coap_get_uri_path(const struct coap_pdu_t *request)</div><div class="ttdoc">Extract uri_path string from request PDU.</div></div>
<div class="ttc" id="astr_8h_html"><div class="ttname"><a href="str_8h.html">str.h</a></div></div>
<div class="ttc" id="astructcoap__pdu__t_html"><div class="ttname"><a href="structcoap__pdu__t.html">coap_pdu_t</a></div><div class="ttdoc">structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00285">pdu.h:285</a></div></div>
<div class="ttc" id="astructcoap__str__const__t_html"><div class="ttname"><a href="structcoap__str__const__t.html">coap_str_const_t</a></div><div class="ttdoc">Coap string data definition with const data.</div><div class="ttdef"><b>Definition</b> <a href="str_8h_source.html#l00033">str.h:33</a></div></div>
<div class="ttc" id="astructcoap__string__t_html"><div class="ttname"><a href="structcoap__string__t.html">coap_string_t</a></div><div class="ttdoc">Coap string data definition.</div><div class="ttdef"><b>Definition</b> <a href="str_8h_source.html#l00025">str.h:25</a></div></div>
<div class="ttc" id="astructcoap__uri__t_html"><div class="ttname"><a href="structcoap__uri__t.html">coap_uri_t</a></div><div class="ttdoc">Representation of parsed URI.</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00036">uri.h:36</a></div></div>
<div class="ttc" id="astructcoap__uri__t_html_a2b3355328328ce7adb61cd95df96abc7"><div class="ttname"><a href="structcoap__uri__t.html#a2b3355328328ce7adb61cd95df96abc7">coap_uri_t::scheme</a></div><div class="ttdeci">enum coap_uri_scheme_t scheme</div><div class="ttdoc">The parsed scheme specifier.</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00044">uri.h:44</a></div></div>
<div class="ttc" id="astructcoap__uri__t_html_a2c4505373842a4686ae02a3972b078ca"><div class="ttname"><a href="structcoap__uri__t.html#a2c4505373842a4686ae02a3972b078ca">coap_uri_t::path</a></div><div class="ttdeci">coap_str_const_t path</div><div class="ttdoc">Beginning of the first path segment.</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00039">uri.h:39</a></div></div>
<div class="ttc" id="astructcoap__uri__t_html_a87ab58b675bfc920c23e136be9be9e89"><div class="ttname"><a href="structcoap__uri__t.html#a87ab58b675bfc920c23e136be9be9e89">coap_uri_t::port</a></div><div class="ttdeci">uint16_t port</div><div class="ttdoc">The port in host byte order.</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00038">uri.h:38</a></div></div>
<div class="ttc" id="astructcoap__uri__t_html_aa15af22879892b2fd5aee8b4d36a923f"><div class="ttname"><a href="structcoap__uri__t.html#aa15af22879892b2fd5aee8b4d36a923f">coap_uri_t::query</a></div><div class="ttdeci">coap_str_const_t query</div><div class="ttdoc">The query part if present.</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00041">uri.h:41</a></div></div>
<div class="ttc" id="astructcoap__uri__t_html_ace54f7716bd00e861e0091275ddf3c07"><div class="ttname"><a href="structcoap__uri__t.html#ace54f7716bd00e861e0091275ddf3c07">coap_uri_t::host</a></div><div class="ttdeci">coap_str_const_t host</div><div class="ttdoc">host part of the URI</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00037">uri.h:37</a></div></div>
<div class="ttc" id="auri_8h_html_a04d042f5a81b4a13bf1cc7d94920ed87"><div class="ttname"><a href="uri_8h.html#a04d042f5a81b4a13bf1cc7d94920ed87">coap_uri_scheme_is_secure</a></div><div class="ttdeci">static int coap_uri_scheme_is_secure(const coap_uri_t *uri)</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00048">uri.h:48</a></div></div>
<div class="ttc" id="auri_8h_html_a4bc2bfdba43dc2aaadb9f53d11968f36"><div class="ttname"><a href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36">coap_uri_scheme_t</a></div><div class="ttdeci">coap_uri_scheme_t</div><div class="ttdoc">The scheme specifiers.</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00022">uri.h:22</a></div></div>
<div class="ttc" id="auri_8h_html_a4bc2bfdba43dc2aaadb9f53d11968f36a375f028b44b6d57248c58725bbd38e88"><div class="ttname"><a href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a375f028b44b6d57248c58725bbd38e88">COAP_URI_SCHEME_COAPS_TCP</a></div><div class="ttdeci">@ COAP_URI_SCHEME_COAPS_TCP</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00027">uri.h:26</a></div></div>
<div class="ttc" id="auri_8h_html_a4bc2bfdba43dc2aaadb9f53d11968f36a477afebb401d715bd69eb3e8ff089ab5"><div class="ttname"><a href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a477afebb401d715bd69eb3e8ff089ab5">COAP_URI_SCHEME_COAPS</a></div><div class="ttdeci">@ COAP_URI_SCHEME_COAPS</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00024">uri.h:24</a></div></div>
<div class="ttc" id="auri_8h_html_a4bc2bfdba43dc2aaadb9f53d11968f36a62476eb057eeaafcf92cdf9b505af96e"><div class="ttname"><a href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36a62476eb057eeaafcf92cdf9b505af96e">COAP_URI_SCHEME_COAP_TCP</a></div><div class="ttdeci">@ COAP_URI_SCHEME_COAP_TCP</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00025">uri.h:25</a></div></div>
<div class="ttc" id="auri_8h_html_a4bc2bfdba43dc2aaadb9f53d11968f36aa41e50ffeab4e989246accb8fc53cf27"><div class="ttname"><a href="uri_8h.html#a4bc2bfdba43dc2aaadb9f53d11968f36aa41e50ffeab4e989246accb8fc53cf27">COAP_URI_SCHEME_COAP</a></div><div class="ttdeci">@ COAP_URI_SCHEME_COAP</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00023">uri.h:23</a></div></div>
<div class="ttc" id="auri_8h_html_acb59d406ae112c48a6c0b200b9433e78"><div class="ttname"><a href="uri_8h.html#acb59d406ae112c48a6c0b200b9433e78">COAP_URI_SCHEME_SECURE_MASK</a></div><div class="ttdeci">#define COAP_URI_SCHEME_SECURE_MASK</div><div class="ttdoc">This mask can be used to check if a parsed URI scheme is secure.</div><div class="ttdef"><b>Definition</b> <a href="uri_8h_source.html#l00030">uri.h:30</a></div></div>
<div class="ttc" id="auri_8h_html_ad75ec78bfe175cd75f19d7e845c774f8"><div class="ttname"><a href="uri_8h.html#ad75ec78bfe175cd75f19d7e845c774f8">coap_clone_uri</a></div><div class="ttdeci">coap_uri_t * coap_clone_uri(const coap_uri_t *uri)</div><div class="ttdoc">Clones the specified coap_uri_t object.</div><div class="ttdef"><b>Definition</b> <a href="uri_8c_source.html#l00457">uri.c:457</a></div></div>
<div class="ttc" id="auri_8h_html_aee99e6e8fd8df58150ec10e66c8dc265"><div class="ttname"><a href="uri_8h.html#aee99e6e8fd8df58150ec10e66c8dc265">coap_new_uri</a></div><div class="ttdeci">coap_uri_t * coap_new_uri(const uint8_t *uri, unsigned int length)</div><div class="ttdoc">Creates a new coap_uri_t object from the specified URI.</div><div class="ttdef"><b>Definition</b> <a href="uri_8c_source.html#l00438">uri.c:438</a></div></div>
<div class="ttc" id="authash_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition</b> <a href="uthash_8h_source.html#l00079">uthash.h:79</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_a14d23a24002734ac2a3b997119f008e.html">coap2</a></li><li class="navelem"><a class="el" href="uri_8h.html">uri.h</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
